package com.lyjilu.model.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the pop_group_popedom database table.
 * 
 */
@Entity
@Table(name="pop_group_popedom")
public class PopGroupPopedom implements Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private BigDecimal type;
	private PopGroup popGroup;
	private PopPopedom popPopedom;

    public PopGroupPopedom() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false, precision=10)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}


	@Column(precision=10)
	public BigDecimal getType() {
		return this.type;
	}

	public void setType(BigDecimal type) {
		this.type = type;
	}


	//bi-directional many-to-one association to PopGroup
    @ManyToOne
	@JoinColumn(name="group_id", nullable=false)
	public PopGroup getPopGroup() {
		return this.popGroup;
	}

	public void setPopGroup(PopGroup popGroup) {
		this.popGroup = popGroup;
	}
	

	//bi-directional many-to-one association to PopPopedom
    @ManyToOne
	@JoinColumn(name="popedom_id", nullable=false)
	public PopPopedom getPopPopedom() {
		return this.popPopedom;
	}

	public void setPopPopedom(PopPopedom popPopedom) {
		this.popPopedom = popPopedom;
	}
	
}